replacing hard-coded compiler options with enum values + general cleanup