Support vs2010

Visual studio 2010 needs some hacks in order to compile against the win8 sdk.