For AR-15's the important thing is that they match. Even if they don't it will still work, you just won't have the "correct" parts.
The M4 ramps are supposed to add a little extra feeding insurance for full auto fire, the M4 cuts in the upper are pretty standard now as most barrels are using the M4 cut barrel extension.