Adjust compiler/linker flags properly while configuring