Correct some warnings from gcc when compiling in non-debug mode.