Add Spark specific defines to fix build