update makefiles to fix configuration issue under pac