added compilation under OSX. but doesnt run