updates to build
fix lockup which could happen on ending debug of a win32 program