add pkg-config and use /usr/share conventions

This change makes two changes

1) it uses pkg-config to get flags and libraries
2) it uses all lower case for /usr/share