Clang changes and fixes for simulator i386 and x86_64