Fix compile and warnings