re-adding fix for import error for windows postgres

Gracefully handles missing imports on Windows.  This was present in the past, but got yanked somewhere along the way