Fixed windows compile errors due to undefined constants