Fixed linking trouble on unix