Fix compatibility mac os X