wcs: only install headers that are part of the C API

This is a backport to 0.2.x of #1665.

@sergiopasra, @embray