link with whole-archive flags

we must force the linker to consider all the modules contained in the static library.
If we do not use this flag, the linker does not include static constructors (for the clock) and the Reset_Handler