Added -pthread flag to makefile for compatibility.
Added compile line for beaglebone to readme