Use unsafe package to do a type cast
Make all references private by default until they actually end up getting used outside of their package and translated some variables in AG_InitGraphics
Fixed null pointer exception in AG_EventLoop
Made AG_EventLoop call GLX_GenericEventLoop
Move a closing bracket