cmake: add NetBSD support / complete cmake support
cmake: add NetBSD support / complete cmake support

Tested on a virtual NetBSD 6.0.

Now we should support the same platforms for
autotools and cmake.

metabrainz/libdiscid,phw/libdiscid,phw/libdiscid,metabrainz/libdiscid