Added threading util using Pthreads and modified Splotbot and Camera component to use it