windows compile fixes