Fixes for Linux environments

Move the Cygwin specific changes away from the generic part of the
makefile. Add in -O3 flag to help improve the FPS count when building
for the Raspberry Pi.