Fixes dllexport problems on windows

... and warings because of double windows makro definition
Merge pull request #13 from lordgeorg/dllexports

Fixes dllexport problems on windows