fix errors on linux (mostly missing includes). #57