ensure code compiles on Mac