Added the ability to build with nvidia drivers. + Small refactoring See merge request ximper/mkimage-profiles!1