update MacOS examples
add MacOS X setup