Adjust to new Stdlib API

This PR adjusts libba.net to the new (still developed) stdlib API.