fix OSX build to search and use a dynamic Ptex lib instead of static.