Got things working with visual studio 2012 somehow (right before almost giving up)