BLD: fixes allow Cmake install of PHP5 and R wrappers