Test that we can build a binary only if we're doing !KERNONLY

If we're not doing a POSIX target build, the test doesn't make too
much sense.