Use std=c++0x for now until Ubuntu has a newer compiler
Correct use of PRId64
Turn on compiler warnings
Fix compiler warnings