use strtol
get rid of the "const" hack in plugin.cc