Information on how to compile the FieldTrip buffer can be found on the FieldTrip wiki at
http://www.fieldtriptoolbox.org/development/realtime/reference_implementation#compiling_the_code
