Alsa Lib segfaults when built statically