build fixes for attachPrototype change.  beginning to work on win8 build