How to create an object of a class at runtime C