Make the code compile under older Windows versions.
Merge pull request #3 from PCMan/master

Make the code compile under older Windows versions.