Fix XP compatibility.
Merge branch 'master' of https://github.com/RagingBigFemaleBird/sgs into working