Add libgcc to build

This adds a cast to printf to remove a warning.
This removes the dummy functions from stm/main.c that come from libgcc.a