The functions defined in libdl.dylib are useful in more places than just AglContext. Moving them to their own class ensures we can access these from wherever we might need them.