cmake: fixed tests compilation on Windows