Fix compilation errors from strict compiler options