[RFC] Allow building as a static library

The first step to [refactoring Vim into a library](https://github.com/neovim/neovim/wiki/Refactor-vim-into-a-library) is to support compiling it as one.
Set property just for this target

    set_target_properties(nvim PROPERTIES CMAKE_POSITION_INDEPENDENT_CODE ON)