add print_backtrace() for Windows
fix memory allocation and releasing in constructors and destructors