Fix compilation errors from GPIO pull request