Fix windows compatibility

Added JSON_API calling conventions for all classes.