Port RCFILE and RESFILE to moz.build