add compatibility code for 'add_prof' version <= 0.02

Hi.
I want to add a compatibility code for add_prof version <= 0.02.
see also: http://kazuph.hateblo.jp/entry/2013/03/23/220345