Fixed some compiler issues on Ubuntu.