configure und gcc 4.7

configure checks + gcc 4.7 compilability