modify cmake script for windows