Explicitely add -lpthread to the linker command for the new sigaltstack threads.