Make calculation of significant bits for varints platform independent
Remove platform dependent debug statement