Fixed linking bug that caused constructors to fail and most of kernel functions to left out.
This fix is bit bad in the sense that linker can't left anything out anymore but at least
we get here everything that is configured... so I don't think this is a big issue and
it seems that binary size is again the same as it used to be.