Updated tundra.lua to support shared library builds.

The shared subvariant of the Tundra build process now correctly
builds the libraries as shared objects.