included stdlib.h, tested on g++ 4.6