Add -flat_namespace to library flags on OS X.