Compiler-checked wrappers around resource files