misc: add build optimization configs