Add flags to build prometheus statically

This is by @discordianfish