Prepare config for build