APEX fixes in OS X Universal

A crash-on-launch fix, @rpath issue and cookie issue.