Miscellaneous improvements for GCC 4.8

* Configure options improvements.