address review comments: enable floating point exceptions conditionally:

- for non-release builds
- only when _GNU_SOURCE is defined

commit will be merged before the final commit