Add support on Windows to capture call stacks. Print out callstacks in error and warning log messages.