Conditional code depending on if iOS or OSX