Fixed release errors.

Fixed all the release errors due to different initialization patterns by
ensuring all the values are initialized.

- Added some forgotten functionality
- Upgraded build
- Changed project settings for more code optimization.