Switch to building with Ninja for faster compilation. Refreshed patches. Signed-off-by: Rosen Penev <rosenp@gmail.com>