add windows support, thanks @mdlawson