removed unused code from wiring makefile. changing the order of the libs declared in main fixes the build, need to find out why!