add singleton module
add Thread module for windows platform