Fixed errors with the build options