fix linked libraries for linux