If I understand you correctly, you are trying to compile C programs that require glfw development libraries. In that case you either need to install the distribution's
glfw-devel package through dnf, or compile and install glfw from source.
(Please note that I have not heard of Rebound, and have not used the Astronomy spin of Fedora; you might want to ask in a Fedora forum to get more specific advice)
In general it is a bad idea to mix packages from your distribution with self-compiled libraries, so I recommend the dnf option. These types of installation issues are not specific to Fedora, so I would not expect you to have an easier time by switching to another Linux distribution.