Fixed build errors with GCC 4.8.1.