Revert "--system-libs option make the build fail"

This reverts commit 373bf92fcb34dd526b436e921acf9245363ad549.