Revert "Fix setting the default build type"

This reverts commit b69a24504392a85051febfaa05565aa5b5f92c7a.