Add a configurable options to enable gcc 4.8 fixes and optimizations