impl assertf
fix some compile error for cygwin and mingw
reimpl windows api interfaces
fix some compile link error for cygwin
reimpl atomic and atomic64 generic interfaces
fix atomic bug for windows
add missing demo files