Update CMake build system to more robustly check bitness using void pointer size

This commit update the build system so that the check is independent of
the system processor name.