fixed linking issues Linux