fix build with gcc4.7
xtools update
add gitignores
debuging fix
cleanup
fix build with gcc