Fixed deprecated stuff. Works now with g++.