Correct documentation generation by adding sphinx.
Correct LD_LIBRARY_PATH for test and remove hard-coded 'plugin'