Added some extra build options if using GCC 4.9.