fix: build native modules flag (#3323)