Tested to fix #5. Allows compilation on Windows.