Fix build for automatically building package