Add ability to supplant main() when core-firmware is used as a lib