segfault lib linked on compile -- produces stacktrace upon SIGSEGV