Allow different threading implementations for multithreaded printer.  Current implementation allows glib threads and pthreads, defaulting to glib threads unless USE_PTHEADS is defined.