fix windows 8 samples

fixed 3 issues with the windows 8 samples due to breaking changes in the
8.2 api changes