Fix compilation.
Merge pull request #2 from markhibberd/topic/hooks

Fix compilation.