Fixed ifdef and a warning.