Fix undefined reference for `parent`

This was introduced in commit c9d6cfd1ea58a1b65cd5ce990c556f1d8911c9bf
that fixed issue #333.

Closes #364