Fix compilation on OS X 10.10 (Yosemite).

Just needed some extra #include's. Works using Clang 5.1.0.