Pay attention to return values of functions in Release build mode.

Bump submodules with similar fixes.