add platform library