Clean code and update windows building script.
Signed-off-by: Zhou Chang <achang.zhou@gmail.com>