Improve the dlopen failure error message.
Made the dspthread.h file C++ compatible.