get changes for GCC 4.8 and optimizations