Switched to cmake for makefile generation.