Make 'base' and 'base-install' targets.

The base targets just build and install ctypes and ctypes.top.
Remove obsolete function declaration.
Add a foreign-install target.
Remove another obsolete function declaration.