Fix compilation errors for x86-64 SDK

Change-Id: Ia515f3bb6687a1bfc1c37fb33e37602ab9d91950
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/message_parsers.cpp b/message_parsers.cpp
index 0e58495..f63282e 100644
--- a/message_parsers.cpp
+++ b/message_parsers.cpp
@@ -198,7 +198,7 @@
     internal::addSequenceNumber(packet, session);
 
     // Add Payload
-    header->payloadLength = endian::to_ipmi(outMessage.payload.size());
+    header->payloadLength = endian::to_ipmi<uint16_t>(outMessage.payload.size());
     // Insert the Payload into the Packet
     packet.insert(packet.end(), outMessage.payload.begin(),
                   outMessage.payload.end());