Fixed build problems under linux; remove stdout spew