Fix DEBUG_MESSAGE macro usage for syscall error checking.
Buffer class added.
Update Makefiles.