Added system checks for adding compiler flags.