Fix NoClassDefFoundError with OutputCapture