Fixes for building + migrate .rsrc to .rdef

Part of GCI task http://www.google-melange.com/gci/task/view/google/gci2013/5066544212082688