Fix errors in compile step