minor fixes to linux build flags (for cross-compiling mostly)