maa: change the linking of maa and make gpio functions match maa_ spec