correct export
Move to C99 to avoid ll warnings (C90)
+ remove double -f (RM already has it)
Use current and not the deprecated Linux ifdef