Added defines to solve compile issues