change cflags and ldflags to arrays so as to adapt customization. Fixes #12