Implemented agl_shared_library on Linux, Mac OS X, and iOS.