small fixes for compiling on linux
add includes from macosx and cmakefile and bootstrap for compiling