add #include <cstdlib> to main to fix linux make