Check for 32 bit OS first in the CMake file

Otherwise users may waste time installing missing dependencies just to get that error at the end
Merge pull request #1407 from brandonwamboldt/fix-cmake-priority

Check for 32 bit OS first in the CMake file