Fixing compilation problems in startup code