Some fixes from SCA runs

- use reinterpret_cast instead of c-style cast
- prefer empty() over size() for emptiness check

Small fix for make to cleanup left over *.o and *.la files during 'make clean'.