AP_Math.h: No such file or directory
Solved it. After adding:
#include <AP_Math.h>
to that, it was compilable.
#include <FastSerial.h>
#include <AP_Common.h>
#include <AP_GPS.h>
I don't have the slightest clue why this brilliant nerd who developed the code omited that line...