cmake: fixed tests compilation on Windows

fix #63