Added cstdlib include for non-mac compilers.