fixed compilation bug in header file and added installation path