[FIX] Library paths and preprocessor defines should be in CPPFLAGS
[FIX] Use the automatic variable RM=rm -f