more flexibility in ios build
first pass on linux support