libslc: Startup code (WIP-6) Fix some bugs in _libslc_cstart