add library switch for windows support

Temporarily using pragma: no cover on it until we have windows coverage
on travis. Windows builds will be done via jenkins for now.