Add -Wstack-usage, mitigate #974
Increase stack size to 2MB, mitigates #974