make it compilable on a mac