Fixed startup segfault in non-debug builds
Fixes issue #87