Merge pull request #211 from twhittock/master

Changes to alloww for compiling on Windows
Windows strdup replacement did not correctly initialise memory
No known side-effects, but bad