make.sh ready for compiling on raspberry pi; realtime thread maybe not ideal