Add a basic Mafile and fix up the generated bindings