Good that you have read some parts of the Holy Quran. I am a devout Dharmic but have read through the Holy Quran as a matter of interest in religious philosophies. these verses that you have mentioned should not be seen as what you read. You might have to read them with other verses which qualify these.
The Holy Quran if properly read and interpreted is a wonderful religious and philosophical document. The saddest part is, it has been subject to highest amount of misinterpretation, by muslims themselves, thus resulting in Osamas.
Reading through these verses on the face and accusing them is like what aethists in TN read about Purusha Suktha of the vedas and say they are discriminatory against discriminated castes.
No religious scripture in the world is against humanity, only the followers who wrongly interpret them are against it.