more linux linking fixes