No more Qt

The new code may be slightly disgusting.

The manual says readdir() is not thread-safe. Could that be a problem?