Improve prototype/static handling and add in virtuals support.