adding cstdlib for EXIT_FAILURE on linux