patch ti fix compiling. Thanks Lazaroid