Fix types and missing include in ByteOrder
Add missing includes to compile stand alone