A unified treatment of certain subclasses of prestarlike functions