Null values in dictionary parameters are no longer valid
move linker flags to separate variable
make function public
fix style warnings
fix warnings
make all blob accesses use memcpy instead of unaligned accesses
fix linking
fix alignment of distribution data, and remove pointless pack in entityid
merged from master