US stock market opens Friday flat, heading for weekly gains