build greg before compiling