Fixed most issues with affecting native compiling