Refactor gyp files & add variables with default cflags/defines