Fixed problems with native compiling