gcc link flag order was wrong...