cmake: build on Apple
add gitignore