Fixed Makefille so that program compiles and runs under x86 as well, but execution thread does not work.