devel/fnc: fix build
This is a partial cherry-pick of one of fluffy's commits.
See also: 67fb95fb3bd5e61957877f5ac31cd790bff786b5