Compile warning fixes on preflight check