Finnaly got it compiling