Fixes windows bugs

* dllimport functions may NOT be defined in headers
* msvc thinks const is SUPER important