Set cfg(target_arch) for x86-only fns
Register class and set window map manually