style fixes
adapt to new APIs
use proper printf
more new API
fix style, what did I think...
make install