vesa.c: Fix implicit declarations on multiple platforms
In this merge request, we define the DO_PROTOTYPES to make function prototypes available so that modern compilers won't complain.
On ARM platforms, the macro guards do not expose the function prototypes, so we manually copy the required prototypes.