Fix deprecation warnings (Synergy, 3fc1880)
Compiling under Leopard and GCC 4.0 yields various warnings about deprecated APIs and some questionable C constructs. This commit replaces all calls to deprecated APIs with calls to new APIs, and makes other changes to eliminate C-related warnings.
Signed-off-by: Greg Hurrell <greg@hurrell.net>