Fixed GCC 4.4 build issues due to EFIAPI not being used when required.