quick'n'dirty fix for compile under macos