Fix some Windows compile errors