General utility library for NetSurf
