added -lporttime for ubuntu