fix static init of string literals in debug builds
load TH code from separate file when replaying