Switched to CMake to simplify the Makefile and to remove autotools hacks. Replaced InstallDev with CMAKE_INSTALL. Added PKG_BUILD_PARALLEL for faster compilation. Signed-off-by: Rosen Penev <rosenp@gmail.com>