Move CMake modules to cmake/
Fix possible apt-get error

Do "apt-get update" before installing packages.
Remove -m32 from CMakeLists.txt