Cleaning Mac OS X resource file