fix LIBS ordering