enable no-rtti
move windows registry codes to platform