changed to not use pkg-config, brittle on some platforms