src: Remove build dependency on libgsystem

Neither Debian or RHEL have libgsystem ... and we were only using a few
defines from one header.

Closes #1435