Reenabled examples when building single-threaded.
Changed testsuite and unit tests to leave out tests cases
that require threading.