fix freebsd build problem with library dir path