Corrected to compile on ubuntu