Fix build on OSX by adding missing include (fixes #342)

fixes #342