Fixes includes for building on Linux

Added a couple of #includes. With it, it builds 100% fine on linux (debian with gcc 4.8.2)