fix signed/unsigned comparison warning
fix linker error by reordering link libraries
Merge pull request #33 from predmond/master

fix building on ubuntu