Eliminate various compilation warnings