fix some compilation issues and update README