Fix compile issues when excluding all modules but crash reporting