Fix several warnings in the build.