added buildflags.diff - fixes #1