Quick fixes for windows compile errors