Misc stuff. Fix compiling in older gcc