add legacy function valloc

it was already declared in stdlib.h, but not defined anywhere.