initial support for ninja api for bug #41
support for ninja output and tests to ensure ninja stability