updates to make tutorial work on mac os x 10.8

fixed outdated reference to zlib library in tutorial
changed -Wl,R to -Wl,-rpath in sandbox
added an osx10_8 support in example and recipes