It works because the path to the flac include dirs are defined in the makefile/vs/xcode project. This way, it would be also easier to rely on system packages instead of compiling the bundled version.