Fix build error: declaration does not declare anything [-fpermissive] on Unix