support %M{2} and similar
Merge branch 'master' of https://github.com/klamonte/log4d