Fix ordering issue with native modules and incremental builds