fixed build errors from windows commit