fix windows specific issues (compile and regex)