added -lporttime for ubuntu 14