Added <cstdlib> to fix compilation issue with minGW