Some changes

1 .Fixed CMakeList.
    * Fixed library/archive install path.
    * Added target 'uninstall'.
2. Remove unused vars in testings.
3. Avoid typedef redefinition.