Use util.inherits for functional prototypes, fixes #1

Signed-off-by: Eli Skeggs <skeggse@gmail.com>