Fix a few warnings of the release build.