Switched to pkg-config for dependencies.
Reformatted source.