Update to SDK 0.8.7 and fix warnings

All tests pass on this PR