Add -lbare_metal to resolve some linking problems