getting things to compile with g++ on linux