fix windows build
fix unit test warnings