add demangle
reorder headers
forgot use public inheritance for platform_error
use platform_error for reporting platform failure reason
add some comments
use platform_error to report platform failure reason
thread partially complete.
1. detach is still incomplete.