added cstdlib include for compilers that aren't clang