Fix library directory order

This moves path to -ltiled before system library locations, fixing the
case where libtiled from (older) installed version of tiled is
picked up instead of newly built one.