Little changes to get project to compile

Since the first revision of the project was created
in the Qt 4.8 and now I'm using Qt 5 there were some
problems with getting Qt-related sources to compile.
I had to create the new project in QtCreator and import
all of the old files.
Plus I fixed some little errors that were preventing
everything from compiling. Major debugging is still
ahead.