Linking also needs the includes (for C archives lookup).

Added a test case using ctypes which is where I saw the problem.