Fixed ordering of -l in linking of objects to make main