nine: restore basic autoconfiguration, use pkg-config

At this moment we should be able detect d3d directory.

Signed-off-by: David Heidelberg <david@ixit.cz>