fix sd2 compile