Made changes for compiling on linux