Fixes to build against windows 8 sdk