Add iOS and Mac framework builds, fix tests