another try to fix linking order on linux