Another thread intrinsic path that works for gcc >= 4.8
These new intrinsics work on platforms that the old ones did not.