add low-level interface for mpq GMP functions
add library version check