Windows 8 fix

As proposed by @nigel-sampson in #75