Fix some compile warning on certain gcc versions.