Fix pie build