By the way everyone else, Andrew and I eventually debugged this. Andrew's Gentoo flavor had an experimental USE flag that had affected ECL, but would have required I use more idiomatic C++ rather than C for the OS-facing stuff or something I think.