Added support for Apple platform