Fixed warnings

Fixed a couple of problems that were reported as warnings by gcc on Linux.