Prefer the iOS paths when linking the iOS libs.

Fixes #369.

The basic issue was that we were trying to link the Mac libssl.a, etc., when building the iOS simulator lib.