Use VALA_CHECK_MODULES macro which generates vala flags too.