Fixed build errors for mac and monotouch