Added fnd_heap() and foundation::heap().
Added fnd_thread_t and foundation::Thread.