Fix to ensure channels are rejoined on a server redirect operation
Merge pull request #924 from Nigel62/stable-1.0

Fix to ensure channels are rejoined on a server redirect operation
Increased version to 1.0.3-dev
Fixed function declarations that aren't prototypes
Fixed more function declarations that aren't prototypes
Merge pull request #972 from hardening/includeFixes

Include fixes
Changed some functions from inline to static inline

This fixes inline build issues with clang.
http://clang.llvm.org/compatibility.html#inline
(cherry picked from commit 1d32894775edd1bacdbcb4b6c3e129841b637374)
Add missing config.h to types.h

Without config.h the various HAVE_* macros are not used properly and
this causes a compilation error on OSX Mountain Lion.
(cherry picked from commit e32f9ed4b811ba301022520122ea8dea70c65e57)