Added compile time checks for big endian from @pasis