Implement support for UEFI (may be buggy right now).