Fixed some portability issue with timing debug section.