Check if we can access constructor.

This fixes #9