add segmented stack support & posix allocator

[no compile test] add segmented stack support & posix allocator