Use QThreadPool instead of looping in a thread waiting for commands
Mac OS X  fixes: Default font, undeclared attribute