Fix compile error in block structure

Also make id globally visible for error reporting