Small improvements to liboil formula

 - Removed unnecessary GLib dependency
 - Added a simple test

Technically pkg-config is not a necessary dependency either (it's only used to find GLib), but it's useful for testing and liboil does install pkg-config files. I'm not sure what accepted practice is in this case.