added explicit include of cstdlib