tmtxt/in macro to help separate OS-specific stuffs
fix some namespaces