Port bitfury code to Windows