code: def get_build_args():
      
      try:
          build_args = package_config()
      except Exception as e:
          if isinstance(e, OSError):
              if e.errno != errno.ENOENT:
                  _LOGGER.warn('Failed to run pkg-config: {}'.format(e))
          else:
              _LOGGER.warn('pkg-config failed to find tesseract/lept libraries: {}'.format(e))
          build_args = get_tesseract_version()
  
      if build_args['cython_compile_time_env']['TESSERACT_VERSION'] >= 0x3050200:
          _LOGGER.debug('tesseract >= 03.05.02 requires c++11 compiler support')
          build_args['extra_compile_args'] = ['-std=c++11', '-DUSE_STD_NAMESPACE']
  
      _LOGGER.debug('build parameters: {}'.format(build_args))
      return build_args
docs: Return proper build parameters.