Update CMakeLists.txt

Makes position-independent code to avoid link errors in 64 bit subsystems