Fixed build.rs to ignore the absence of CFLAGS
Restructured the code to follow Cargo’s guidelines