buildfix for gcc 4.9 and remove need for 7-zip patch. integrate needed libraries too.