fixed bug - mac ttl

added:
- timeout value so that it won't get confused with ttl (especially when using fsockopen)
- now support multiple # of pings (when using method = exec), use method setPingCount() to set the # of count so that it can transmit multiple packets
- calculate avg of latency (when using method = exec)

fixed:
for OSX the parameter to represent ttl is -m