Add OS X support

This was the only change needed to support CompactConstraint on OS X. I tested the change on both OS X and iOS.