Mac fixes + http listener fixes for unix.