Move {Read,Write}{LE,BE}{32,64} to common.h and use builtins if possible