Added Ludo's changes to make build more robust; now compiles to .go files with warnings.