Add the link to boost libraries
Make a separated thread for dumping the samples to the buffer