re-adding libpath stuff for mac