[mach-o] fix non-debug warnings