Added cstdlib in includes to resolve free() function in linux