Fix GCC Build issue with pointer tricks...

Some compilers will choke on the current library manager code
when attempting to assign the function pointers returned by
dlsym to struct elements. The compiler throws:

error: ISO C forbids conversion of object pointer to function pointer type [-pedantic]

This change fixes those issues by using some entertaining casts
(basically taking the address of the function pointer, casting that,
then dereferencing the result...)