import, adopt and upgrade libbamf3