Fix compilation failure on OSX due to missing include.

Fixes #1449