I'm not sure if anyone else has reported this(a quick search didn't find anything), but repeatedly starting and canceling the build order for the starting capital ship gives the resources required to build the ship, if it wasn't free.
To reproduce this, start a game with the flagship option, and start building a capship. Cancel the build, and you'll get the resources required for building the ship.