Fix bug in gemv binding
Remove various compilation warnings