Add via support for notify, fix some compilation errors