[ext] improve build 32/64bit extension together