Support stricter compiler checks

In our project we have "-Werror" active and quite a few more compile time checks turned on. This pull request offers trivial changes that make make MRProgress classes compile in stricter environments. Where sensible I changed the code slightly, in other places I added pragmas to suppress individual warnings because it seemed acceptable in these cases or it is code taken from another party (e. g. Apple).