Fix static initializers in terraingen