Fixed a few minor issues which prevented compilation on Linux.