matrix helper need iOS compile define