move platform dependent files into 'platform' directory