Initial workarounds for windows compilation