Fix ds1 install; Extend CFLAGS/LDFLAGS from environment

This fixes #2