Fix linux compilation issue caused by Mac/linux header differences.