Fix linking order on linux.