Fixes for handling of handle inheritance.
Some updates.
Use newer gradle snapshot.
Target OS X 10.4 and later.