Fixing warning messages on Ubuntu.