I forgot to declare the extern nMaxStakeValue.
Merge branch 'maximum_stake_value' into mystuff