Making buffer_upload compile