Added XXX_BUFFER_OFFSET for Linux