fixed cross version compiling