add compatibility code for 'add_prof' version <= 0.02
Merge pull request #11 from fujiwara/add_prof_compat

add compatibility code for 'add_prof' version <= 0.02