libslc: Startup code (WIP-5) Fix some bugs in _libslc_start_main.c