Run pkg-config fewer times. Stop regenerating minblep.h all the time, it takes 10 minutes on an RPi.