Detect compiler flags and append to default CMake flags
Add -Wshadow if supported
CMake function for adding compiler flags