fix build_lib.py for windows