Misc fix

Fix some warnings in Clang checker. Some are bugs some are just making compiler happy.