examples: rhel compilation fixed, GLIBCXX_USE_NANOSLEEP added