Fixing template instantiation error in older compilers. NULL needs cstdlib