generalize the SDKVERSION in the Makefile to take into account the sdk type.
build for macosx as well as ios, and include x86_64 for the sim build too.