Adds code in for osx, linux, and ios.