Separate iOS/OSX compatibile code in commonutils