Fixes for compilation warnings.