Gave _premain in startup code weak linkage, so that it can be overridden by user code.