Add missing files in Makefile.am.
Prepare support for table joins.
Implement some more tables.
*NIX build fix.
Don't instantiate abstract objects.

Fixes #3669