Fixed misc [un]signed/unused variables warnings, made default compile on Ubuntu/Linux-with-GNU.