Fixed build errors from GCC 4.6.