Fix include guards.
Add single-threaded version.