Add missing imports. Fixes #316