Use custom functions for v8 object creation, don't use nan when creating objects for 0.10.x and below as with nan it is slower