build-sys: add autoconf macro to pick macro for x32 compatibility