Put link flags at the end to handle adding libraries