Updated compile flags to fix stack overflow error