Fix exit strategy to stop threads
Fix static buffer(see part of changes in cpp file reentrant commit)
Fix error message
Make reentrant
Build on OpenCV 3.0!