Please check out

	http://gollem.swi.psy.uva.nl/twiki/pl/bin/view/Foreign/MacOsXForeign

and especially

	http://www.phil.uu.nl/~xges/HOWTO/swipldynlib.html 

discussing various issues concerned with building and using foreign code
on MacOSX platform.
