Fix includes, filter .o and .d, add prototype of new main().