tweaks to get things compiling on linux