revert change of foreign library definition for darwin