Small Fermi energy effects in MgB2 and related compounds