Add warnings and compatible C++11 flag for gcc.
Add headers for free and aligned_alloc