This reverts commit 9b25f306 to reinstate the reverted commit with fixes that solved the build issues when --enalbe-clpf is used in configure. Change-Id: I15447cae7fa9b3deb27976345dc3db230a4a7a60