Make release.sh work on linux.
Make release.sh more robust.
Make the examples tests run properly.