ios and simulator parts work on latest xcode 5 with ios 7.0
better ios/mac detection using TargetConditionals.h if compiling for apple operating systems
added some code to make mac window work somewhat better. at least it is rendering something now