fix compiler errors in mach and gpio