try to limit the netmaks workaround for Windows only, otherwise it probably breaks on OS X