A whole lot of headers were missing extern "C"