Push vendor libraries on the front of CFLAGS

This makes sure we pickup vendor libraries before system libraries if
they are available as system libraries as well.