Packaging fixes

- Add pkg-config check at top level
- Fix optional build of myproxy