handle OSX without pkgconfig