Linux love

A bit of build system love for Linux. I split it up into somewhat sane patches. The #include casing patch should be fairly easy to send upstream to the famitracker folks. Crashes on lanch though.