refactored getenv("GDB") logic
refactored out utility functions
fixed some issues with .pc file generation