Update authors and version
Fix a potential memory access bug
Add CPack settings
Fix some portability issues