fix resource file for Mac OSX