Test to comment out MYSQL_ATTR_USE_BUFFERED_QUERY and see if build pass OK.
This may improve memory cc @tsteur