Compilation environment fixes to make make install work correctly.