Speed up LCDC by removing use of unions

This should also improve portability