Added the NPObject interface
fixed negative size bug in malloc