Fix the remaining compiler warnings on MacOS

Clang doesn't like the gcc pragmas to ignore warnings; since
this is used just to ignore unused variables, we can use the
Q_UNUSED() macro instead (which just expands to (void)name
anyway which is portable).
Merge pull request #69 from chrisy/feature/clang-warnings

Fix the remaining compiler warnings on MacOS/clang (From Chris)