See #31, we should just use libflags here. I can do the fix once this PR is in.