preliminary cmake support. linking still broken.