Fix build errors and improve README