Fixed a compilation warning in a thread local test case.
Fixed a bug that caused the ARPACK thread-local test case to hang on some platforms.
Fix issue #481, thread-local storage is now correctly detected by configure on newer clang versions.