updated to newest ninja
fixed readlink call so it works on BSD utils