fixed message pack to work with Xcode 5.1
moved inline function definition into .c file to prevent duplicate symbol linker error