Refactor libfsw functions to return an error code and not to rethrow C++ exceptions.
Update Autoconf check and warning message on the C++11 thread_local storage specifier.