Fix warning: comparison between signed and unsigned.
Fix order of linker options while testing libjsoncpp.