Extract required groonga version information to other file

It is for sharing with CMakeLists.txt.