add platform check to set library names for linking on windows