correct build ordering by forcing the lib to be built first