Fixed bad loop and bad calling to print function
Changed to CMake to build
Added misisng threads linking
Added release flag to optimize with -O3
Merge branch 'master' into dcpu-16e