Fix cmake when CMAKE_SIZEOF_VOID_P udnefined
The cmake build emits errors similar to here: [1] when
the CMAKE_SIZEOF_VOID_P variable is not defined. Not sure
why it's not defined in some cases, but this is an easy fix.
CMake Error at CMakeLists.txt:77 (if):
if given arguments:
[...........]
Unknown arguments specified
[1] https://stackoverflow.com/a/39733128