copy css and images to dist file and other build fixes