LZO improvements

This should drastically improve LZO performance especially using unaligned access on ARM. Also include a few GCC fixes.