Also note that some of the library's are incompatible. The newping function isn't fully compatible with the reading of an IR receiver for instance irremote.h). Apparently they both use the same timer. I tried it and it won't compile.
NewPing\NewPing.cpp.o: In function `__vector_13':
C:\Program Files (x86)\Arduino\libraries\NewPing/NewPing.cpp:214: multiple definition of `__vector_13'
IRremote\IRremote.cpp.o:C:\Program Files (x86)\Arduino\libraries\IRremote/IRremote.cpp:311: first defined here
c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions