fixed some compile issues...