Fixed some compilation warnings on Ubuntu 14.04.