fixed linking on linux