Compatibility cleanups
Compile performance tweak
More dynasm codes and use strlen for C code.