Some fixes to eliminate compiler warnings

rebased pull request https://github.com/lxde/pcmanfm-qt/pull/1#issuecomment-29200606