fixes for running nosetests on windows