Fix issue #2 and #3 (missing dependencies and rotary encoder reversed)

Fixed issue #2 by adding the missing objects and libraries to the makefile.
Fixed issue #3 by reversing the rotary encoder return value.