added stdlib for free() in linux