Fix linking problems on linux.