Fixed build errors from GCC 4.8.