FIxing warnings and cleaning build