Fix build: Add intreadwrite.h and bswap.h #includes where necessary.