Fix/startup segfault

This should fix issue #18 by loading spl first when needed.

Kudos to @Tony2001, the patch is really his.