Fixes windows bugs

* dllimport functions may NOT be defined in headers
* msvc thinks const is SUPER important
Merge pull request #215 from lordgeorg/master

Fixes windows bugs