Support EXTEND_PROTOTYPES = false

Fixes #87