bugfixes
fixed build for windows