explicitly cast result of dlsym() to prevent compiler warnings