Fix order of libraries used for linking to Ingres