fix previous commits and add build script
small fix to make the library running on Windows