change foreign library definition for darwin

declare the search path instead of giving an absolute pathname for the
library