Fix build to work with python disabled