Added simple static library build to cmake and a gitignore