Move backtrace support to windows specific pri files and other minor improvements. v2