Update .gitignore. Fix compilation errors and warnings. Fixup release
build configuration.