fix recource files to be os macros independent