Switch to CMake + Ninja to fix parallel compilation. Switched PKG_BUILD_DIR to use PKG_INSTALL_DIR for easier readability. Signed-off-by: Rosen Penev <rosenp@gmail.com>