Fixed windows XP error.
Merge pull request #2 from ruimalheiro/master

Compatibility with Windows XP