Fixed linux compilation to allow use of cross-compiler