More strict flags

Hi,
I thought it'd be nice to be sure that there are no warnings during compilation so I added more strict compilation flags. Because of that change, some of the compilation warnings had to be fixed (some of them were introduced with ```-pedantic```).

One note: ```-fno-long-long``` is added only because of Qt warnings.

If you like the change, please add it to the upstream.