Add compatibility header to 'fix_client'

'fix_client' uses 'clock_gettime' which is provided by the compatibility
layer on Darwin.

Signed-off-by: Jussi Virtanen <jussi.k.virtanen@gmail.com>
Rename 'strmode' to 'strclientmode' in 'fix_client'

The standard C library on BSD provides a function called 'strmode'.

Signed-off-by: Jussi Virtanen <jussi.k.virtanen@gmail.com>
Include 'libgen.h' in 'fix_client'

'basename' is not declared on Darwin unless 'libgen.h' is included.

Signed-off-by: Jussi Virtanen <jussi.k.virtanen@gmail.com>
Rename 'strmode' to 'strservermode' in 'fix_server'

The standard C library on BSD provides a function called 'strmode'.

Signed-off-by: Jussi Virtanen <jussi.k.virtanen@gmail.com>
Merge pull request #12 from jvirtanen/fixes/darwin

Regain Darwin support