fix includes and libdirs