Adding default method implementations.

Now native modules compile out-of-the box, with unimplemented methods correctly
throwing an exception.