fix odd bug with clang on ubuntu 12.10
misc notes and test build fixes