Changed whole build system to support compiling under linux