Don't link to libgsystem, just use the headers

This is necessary to get through packaging blockages in Fedora.