Fix compilation errors in Encoder and GPIO classs