Separated optimization flags from LTO
Added rotary encoder test
Corrected some test compilation issues on 64-bit machines
Fixed rotary bug
Some cleanup
Cleaned up dacs application