MISC-fix-39a8.4: Fixed unability to build units with P_MAX_STACK set