Compiling resources