Minor API cleanup.

[SVN r86429]
Added implementation of thread_specific_ptr.

[SVN r86430]
Added pragma once.

[SVN r86431]