Major cleanup of makefiles: allow compiling under linux host