append defines instead of assigning
use mrbc of current build in non cross build
move debug record size assertion to correct position
Merge pull request #1597 from take-cheeze/mrbcfile

debug record size assertion fail