fixed not drawing anything because render mode is not set at startup when there is no setting for it.
for the most part implemented CPack configuration.