Fix some breakage on non-iOS build.