Fixed checking automake version is incorrect.
Fixed v_lock is not treated as signed.
Fixed f_wait_synchronizers() freezes when optimized.
Switched to C++11.
Switched to C++11 thread classes.
Refactored to reduce warnings when using clang.