add platform check to set library names for linking on windows

This is the last patch required to make windows work. This will drop our coverage <100% until we enable a windows build slave (and figure out how to get it integrated with coveralls)