Fixes for compilation issues and bind new methods

This pull request fixes some compilation errors we were having. It also adds new bindings for methods available in the WiringPi C library.