Some build fixups.

Also changed the default to be non-blocking.

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Merge pull request #2 from jonludlam/fixups

Some build fixups.