Follow the links to GitHub, the code there compiles perfectly, the PoC inside the article is just a shortened version
P.S. Yes it works! Perhaps add a comments in the short version where it says
//This shortened version does not compile, use the GitHub version of the code
It said "proof-of-concept" and I generally expect PoC to work as presented. My bad for not reading everything carefully.