Fix resource compilation.