Make library compile with c++.
Make `sdshdr' a typedef.