fixed build settings for archiving