Add `--enable-shared`, slightly smaller images, and slightly better consistency across Dockerfiles

Fixes #21
Fixes #22

Thanks @GrahamDumpleton :+1: