Use pkg-config --modversion flag instead of non-portable --variable=V