Added cmake with Linux/FreeBSD support.