Bunch of fixes for built-in chicken build