Add system bitness checks using CMAKE_SIZEOF_VOID_P
Move build options to the top of CMakeLists.txt
Fix MSVC compile warning

logprintf.c(49): warning C4090: 'function' : different 'const' qualifiers
Set NASM object format to 'win32' for Windows builds