fix windows (cross-)build issues