fixed bug in spn_vm_addlib_* functions