Silence warnings related to handling dlsym return values.

- Silence object pointer to function pointer cast warning
- Silence dereferencing type-punned pointer breaking
  strict-aliasing rules warning (on gcc 4.3)