galileo: Revise stdlib static linking
galileo: Revise stdlib static linking

This patch does some refactoring so we are able to statically link
against standard libraries in a more usual way.

MohamedSeliem/contiki,arurke/contiki,MohamedSeliem/contiki,MohamedSeliem/contiki,arurke/contiki,arurke/contiki,MohamedSeliem/contiki,MohamedSeliem/contiki,arurke/contiki,arurke/contiki,arurke/contiki,MohamedSeliem/contiki,MohamedSeliem/contiki,arurke/contiki