Fixing compile time warnings and errors @ Ubuntu.