fix error: 'R_OK' undeclared
fix error: conflicting types for 'lt__PROGRAM__LTX_preloaded_symbols'
fix undefined references to regcomp, regexec, regfree
fix error: lvalue required as left operand of assignment